function columns(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: '',
      key: 'rowIndex',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '标题',
      align: 'center',
      dataIndex: 'title',
      scopedSlots: {customRender: 'title2'},
      key: 'title',
      // width: 400,
    },
    {
      title: '摘要',
      align: 'center',
      dataIndex: 'summary',
      scopedSlots: {customRender: 'summary'},
      key: 'summary',
      // width: 600,
    },
    {
      title: '作者',
      align: 'center',
      dataIndex: 'author',
      key: 'author',
      scopedSlots: {customRender: 'author'},
    },
    {
      title: '首发时间',
      align: 'center',
      dataIndex: 'putTime',
      key: 'putTime'
    },
    {
      dataIndex: 'action',
      align: 'center',
      slots: {title: 'actionName'},
      width: 200,
      scopedSlots: {customRender: 'action'}
    }
  ]
  return cols
}

export default columns